<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        canvas {
            display: block;
            margin: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    </style>
</head>

<body>

    <script src="js/phaser.js"></script>
    <script>
        var gameConfig = {
            width: 480,
            height: 640,
            backgroundColor: 0xff0000
        }


        var game = new Phaser.Game(gameConfig);
    </script>
</body>

</html>